package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc DeptTargetTaskBookIdDto
 * @使用场景
 */
@Data
public class DeptTargetTaskBookIdDto extends BaseDto implements Serializable {

  /**
   * 被评对象目标周期ID
   */
  @ApiModelProperty("被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 部门ID
   */
  @ApiModelProperty("部门ID")
  private String deptId;

  /**
   * 部门简称
   */
  @ApiModelProperty("部门简称")
  private String deptShortName;

  /**
   * 部门名称（中文）
   */
  @ApiModelProperty("部门名称（中文）")
  private String deptName;

  /**
   * 被评对象内容表主键ID
   */
  @ApiModelProperty("被评对象内容表主键ID")
  private String evaObjEntityId;

  /**
   * 状态校验项ID
   */
  @ApiModelProperty("状态校验项ID")
  private String statusCheckItemId;

  /**
   * 检查项标识
   */
  @ApiModelProperty("检查项标识")
  private String checkItemCode;

  /**
   * 是否已完成 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否已完成")
  private String isComplete;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DeptTargetTaskBookIdDto that = (DeptTargetTaskBookIdDto) o;
    return (
      evaObjTargetCycleId == that.evaObjTargetCycleId &&
      deptId == that.deptId &&
      deptShortName == that.deptShortName &&
      deptName == that.deptName &&
      evaObjEntityId == that.evaObjEntityId &&
      statusCheckItemId == that.statusCheckItemId &&
      checkItemCode == that.checkItemCode &&
      isComplete == that.isComplete
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      evaObjTargetCycleId,
      deptId,
      deptShortName,
      deptName,
      evaObjEntityId,
      statusCheckItemId,
      checkItemCode,
      isComplete
    );
  }

}
